package com.chenfan.mcn.mq.message;

import com.alibaba.fastjson.annotation.JSONType;
import com.chenfan.mcn.mq.MessageType;
import lombok.Data;

import java.util.List;

/**
 * @ClassName AutoTaxInvoiceMessage
 * @Description 费用+自动开票
 * @Author Yutao.Lin
 * @Date 12/1/22 3:47 PM
 * @Version 1.0
 **/
@Data
@JSONType(typeName = MessageType.CHARGE_AUTO_TAX_INVOICE)
public class ChargeAutoTaxInvoiceMessage extends AbstractMetaMessage {

    private static final long serialVersionUID = -3772455124686023652L;

    /**
     * 费用
     */
    private List<CfChargeCommonMessage> chargeInfos;

    /**
     * 业务类型：1-货品采购; 2-销售订单; 3-MCN; 4-WMS
     */
    private Integer chargeSourceType = 3;

    /**
     * 财务信息id
     */
    private Long accountId;

    /**
     * 结算主体类型(1=红人；2=MCN客户；3=销售客户；4=货主，5=供应商)
     */
    private Integer balanceType;

    /**
     * 结算主体
     */
    private String balance;

    /**
     * 开票形式：0无需开票；1开票待定；2开票
     */
    private String invoiceForm;
    /**
     * 开票内容
     */
    private String billingContent;
    /**
     * 开票类型：1普票，2专票
     */
    private String taxInvoiceType;
    /**
     * 开票备注
     */
    private String remark;

    /**
     * 发票内容
     */
    private String invoiceContent;

}